Application.ExecuteCommand("Filter")
SelectionFilterDlg.Nothing.Click()
SelectionFilterDlg.SelectionObjectsDlg.Pins = true
SelectionFilterDlg.Ok.Click()
Application.StatusBarText = "Select Pins"
'ApplicationMode=3 ' add via add pin
dim ws : set ws = CreateObject("WScript.Shell")
dim varName : varName = "ApplicationMode"
dim varValue : varValue = 3 
ws.RegWrite "HKEY_CURRENT_USER\Software\MyApp\PADS\" & varName, varValue, "REG_EXPAND_SZ"
set ws = nothing